package com.ruoyi.gateway.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备网关对象 t_iot_gateway
 * 
 * @author ruoyi
 * @date 2023-05-31
 */
public class TIotGateway extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 网关主键 */
    @Excel(name = "网关主键")
    private Long id;

    /** 网关名称 */
    @Excel(name = "网关名称")
    private String name;

    /** 网关ip */
    @Excel(name = "网关ip")
    private String ip;

    /** 网关序列  */
    @Excel(name = "网关序列 ")
    private String serialNumber;

    /** 账号 */
    private String account;

    /** 密码 */
    private String password;

    /** 心跳包内容 */
    private String heartbeat;

    /** 网关状态 0有效 1无效 */
    @Excel(name = "网关状态 0有效 1无效")
    private Integer status;

    /** 是否删除 0未删除 1删除 */
    private Integer isDelete;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    private Date modifyDate;

    /** 网关端口 */
    @Excel(name = "网关端口")
    private String port;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setSerialNumber(String serialNumber) 
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber() 
    {
        return serialNumber;
    }
    public void setAccount(String account) 
    {
        this.account = account;
    }

    public String getAccount() 
    {
        return account;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setHeartbeat(String heartbeat) 
    {
        this.heartbeat = heartbeat;
    }

    public String getHeartbeat() 
    {
        return heartbeat;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setModifyDate(Date modifyDate) 
    {
        this.modifyDate = modifyDate;
    }

    public Date getModifyDate() 
    {
        return modifyDate;
    }
    public void setPort(String port) 
    {
        this.port = port;
    }

    public String getPort() 
    {
        return port;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("ip", getIp())
            .append("serialNumber", getSerialNumber())
            .append("account", getAccount())
            .append("password", getPassword())
            .append("heartbeat", getHeartbeat())
            .append("status", getStatus())
            .append("isDelete", getIsDelete())
            .append("createDate", getCreateDate())
            .append("modifyDate", getModifyDate())
            .append("port", getPort())
            .toString();
    }
}
